import request from '@/utils/request'

export function getSttingsList(params){
    return request({
        url:'/sys/role',
        method:'get',
        params
    })
}

export function AddSttingsList(data){
    return request({
        url:'/sys/role',
        method:'post',
        data
    })
}


export function updateSttingsList(data){
    return request({
        url: `/sys/role/${data.id}`,
        method:'put',
        data
    })
}


export function DelSttingsList(id){
    return request({
        url: `/sys/role/${id}`,
        method:'delete',
    })
}